import api from '../../utils/api';

export async function qryTypes() {
  return api.post('/alarm/qryTypes');
}

export async function qryAlarmByParams(param) {
  return api.post('/alarm/getAlarmByParams', {
    data: JSON.stringify(param),
  });
}

export async function handle(param) {
  return api.post('/alarm/handle',{
    data: JSON.stringify(param),
  });
}

export async function getAlarmResultById(param) {
  return api.post('/alarm/getAlarmResultById', {
    data: JSON.stringify(param),
  });
}